<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">


    <script>
        var myObject = {
            foo: 1,
            bar: 2,
            get baz() {
                return this.foo + this.bar;
            },
        }

        Reflect.get(myObject, 'foo') // 1
        Reflect.get(myObject, 'bar') // 2
         // 3

        console.log(myObject.baz)
    </script>

</head>

<body>

</body>

</html>